import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-home',
  templateUrl: './home.component.html',
  styleUrls: ['./home.component.scss']
})
export class HomeComponent implements OnInit {
  public picUrl = 'https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3363295869,2467511306&fm=26&gp=0.jpg'
  public list: any[] = [
    {
      "title": "我是新闻1"
    },
    {
      "title": "我是新闻2"
    },
    {
      "title": "我是新闻3"
    },
  ]
  public flag: boolean = false;
  public orderStatus: number = 1; //1表示已支付 2表示支付且确认订单 3表示已经发货 4表示
  public attr: string = 'red'
  public today: any = new Date();
  public keywords
  constructor() { }

  ngOnInit(): void {
  }
  run() {
    alert('alert一个东西')
  }
  getData() {
    alert(this.today)
  }
  setData() {
    this.today = '我不是一个时间了'
  }
  keyDown() {
    console.log('keydown');
  }
  keyUp(e) {
    console.log(e.keyCode);
  }
}
